package com.base.cn.platform.os.service.manage.statistics.trade;

import com.base.cn.platform.os.service.FeignAuthConfig;
import com.base.cn.platform.os.service.manage.BaseService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * 交易统计数据接口
 *
 * @author s.li
 * @date 2019/04/25
 */
@FeignClient(name = BaseService.appName,configuration = FeignAuthConfig.class)
public interface TradeStatisticsService extends BaseService {

    /**
     * 查看交易分析统计中的交易数据
     * @param dateQueryCondition 查询的时间条件
     * @return Map<String,Object>
     */
    @RequestMapping(contextPath + "/statistics/tradePayOrderNumList")
    Map<String,Object> tradePayOrderNumList(@RequestBody Map<String, Object> dateQueryCondition);

    /**
     * 查询获取交易额度与订单量分布
     * @return Map<String,Object>
     */
    @RequestMapping(contextPath + "/statistics/queryOrderTradeSpreadList")
    Map<String,Object> queryOrderTradeSpreadList(@RequestBody Map<String, Object> dateQueryCondition);

    /**
     * 查询订单支付方式占比统计数据
     * @return Map<String,Object>
     */
    @RequestMapping(contextPath + "/statistics/queryOrderPayTypeOrderNum")
    Map<String,Object> queryOrderPayTypeOrderNum(@RequestBody Map<String, Object> dateQueryCondition);

    /**
     * 查询订单的支付来源数据统计
     * @return Map<String,Object>
     */
    @RequestMapping(contextPath + "/statistics/queryPayOrderFormNumData")
    Map<String,Object> queryPayOrderFormNumData(@RequestBody Map<String, Object> dateQueryCondition);

}
